import type { AppRouteModule } from '@/router/types'

import { LAYOUT } from '@/router/constant'
import { t } from '@/hooks/web/useI18n'

const system: AppRouteModule = {
  path: '/dataReport',
  name: 'DataReport',
  component: LAYOUT,
  redirect: '/dataReport/energyStatistics',
  meta: {
    orderNo: 3,
    icon: 'clarity:analytics-outline-alerted',
    title: t('routes.dataReport.moduleName'),
  },
  children: [
    {
      path: 'energyStatistics',
      name: 'EnergyStatisticsManage',
      meta: {
        title: t('routes.dataReport.energyStatistics'),
        ignoreKeepAlive: false,
      },
      component: () => import('@/views/dataReport/energyStatistics/index.vue'),
    },
    {
      path: 'energyComparison',
      name: 'EnergyComparisonManage',
      meta: {
        title: t('routes.dataReport.energyComparison'),
        ignoreKeepAlive: true,
        // showMenu: false,
        // currentActiveMenu: '/system/account',
      },
      component: () => import('@/views/dataReport/energyComparison/index.vue'),
    },
    {
      path: 'deviceParamComparison',
      name: 'DeviceParamComparison',
      meta: {
        title: t('routes.dataReport.deviceParamComparison'),
        ignoreKeepAlive: true,
      },
      component: () => import('@/views/dataReport/deviceParamComparison/index.vue'),
    },
    {
      path: 'energyDataReport',
      name: 'EnergyDataReport',
      meta: {
        title: t('routes.dataReport.energyDataReport'),
        ignoreKeepAlive: true,
      },
      component: () => import('@/views/dataReport/energyDataReport/index.vue'),
    },
    // {
    //   path: 'energyComparison',
    //   name: 'EnergyComparison',
    //   meta: {
    //     title: t('routes.dataReport.energyComparison'),
    //     ignoreKeepAlive: true,
    //   },
    //   component: () => import('@/views/dataReport/energyComparison/index.vue'),
    // },
    {
      path: 'deviceParamReport',
      name: 'DeviceParamReport',
      meta: {
        title: t('routes.dataReport.deviceParamReport'),
        ignoreKeepAlive: true,
      },
      component: () => import('@/views/dataReport/deviceParamReport/index.vue'),
    },
    {
      path: 'energyAlarmReport',
      name: 'EnergyAlarmReport',
      meta: {
        title: t('routes.dataReport.energyAlarmReport'),
        ignoreKeepAlive: true,
      },
      component: () => import('@/views/dataReport/energyAlarmReport/index.vue'),
    },
  ],
}

export default system
